/*base class that corresponds to a car*/
import java.io.*;
 public class Car
{
	/*members of the Car class*/
	private String model;
	private String color;
	private String state;
	private double cost;
	
	public Car(String model,String color,String state,double cost){
		this.model=model;
		this.color=color;
		this.state=state;
		this.cost=cost;
	} 
	/*getter and setter method of all the members*/
	/*MODEL*/
	String getModel(){
		return this.model;
	}
	void setModel(String model){
		this.model=model;
	}
	/*COLOR*/
	String getColor(){
		return this.color;
	}
	void setColor(String color){
		this.color=color;
	}
	/*STATE*/
	String getState(){
		return this.state;
	}
	void setState(String state){
		this.state=state;
	}
	/*COST*/
	double getCost(){
		return	this.cost;
	}
	void setCost(double cost){
		this.cost=cost;
	}
	/*method to print all the members*/
	void printDetails(){
		System.out.println("MODEL="+this.model);
		System.out.println("COLOR="+this.color);
		System.out.println("STATE="+this.state);
		System.out.println("COST="+this.cost);
	}
}
